﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using GBFinance.Web.Models;
using HiLand.Utility.Web;

namespace GBFinance.Web
{
    public static class CodeUtils
    {
        public const string LayoutPathForSecured = "~/Views/Shared/_SecuredProgressLayout.cshtml";
        public const string LayoutPathForUnSecured = "~/Views/Shared/_UnSecuredProgressLayout.cshtml";

        public static void SetLoanStep<T>(int step) where T : LoanCookie
        {
            ////LoanCookie d = new LoanCookie();
            //LoanCookie loanCookie = new T();
            //bool isNeedSaveCookie = false;
            //if (loanCookie.CurrentStep < step)
            //{
            //    loanCookie.CurrentStep = step;
            //    isNeedSaveCookie = true;
            //}

            //if (isNeedSaveCookie == true)
            //{
            //    loanCookie.Save();
            //}
        }
    }
}